/* 
 * File:   Room.h
 * Author: abhi
 *
 * Created on February 9, 2012, 12:23 PM
 */

#ifndef ROOM_H
#define	ROOM_H

#ifdef	__cplusplus
extern "C" {
#endif
    
    int RoomCount;

    struct room_t {
        int id;
        int vacant;
        double area;
    } Room;

    Room* getRoomWithID(Room** roomArr, int roomID);
    
    
    int isVacant(int roomID);
    int book(int roomID);
    
    FILE* createRoomFile(void);
    int removeRoomFile(FILE* fp);

#ifdef	__cplusplus
}
#endif

#endif	/* ROOM_H */

